The CT Get chart type command returns the type of the chart specified by area and object.
The following table lists the codes for the chart types:
Code | Chart Type |
1 | Area |
2 | Column |
3 | Picture |
4 | Line |
5 | Scatter |
6 | Pie |
7 | Polar |
8 | 2D XY |
100 | 3D Column |
101 | 3D Line |
102 | 3D Area |
103 | 3D Surface |
104 | 3D Triangle |
105 | 3D Spike |
In this example, CT Get chart type is used to get the chart type of the chart specified by $ChartID. If it is not a column chart, CT SET CHART TYPE changes it to a column chart.